<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="referrer" content="never">
    <title>喜餐订货管理系统</title>
    
    <link rel="icon" href="images/faviconL.ico" type="image/x-icon" />
    <link rel="stylesheet" href="css/comments.css" media="all">
    <link rel="stylesheet" href="plugins/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="css/global.css" media="all">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" href="css/index.css">
	<style>
		/* 面包屑样式 */
		.layui-layout-admin .layui-body {
		    top: 50px;
		}
		.bei_navigation{
			height:42px;
			line-height:42px;
			padding-left:30px;
			width:100%;
			background:#FFFFFF;	
		}
		.layui-breadcrumb a{
			cursor:pointer
		}
		.backger {
		    height: 10px;
		    background: #f2f2f2;
		}
	</style>
</head>
<body>
    <div class="layui-layout layui-layout-admin" id="currencyD">
        <div class="layui-header header header-demo">
            <div class="layui-main">
                <ul class="layui-nav layui-layout-left">
                    <li class="layui-nav-item">
                        <a href="javascript:;" class="admin-side-toggle">
                            <i class="layui-icon layui-icon-shrink-right"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" onclick="javascript:refreshFrame()">
                            <i class="layui-icon layui-icon-refresh"></i>
                        </a>
                    </li>
                </ul>
                <ul class="layui-nav layui-layout-right">
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <cite>欢迎你，<span class="login-name"></span></cite>
                        </a>
                        <dl class="layui-nav-child" style="padding-top: 0;">
                            <dd class="login_account" style="background: #eee;text-align: center;color: #333333;"></dd>
                            <dd><a lay-submit lay-filter="loginout">>注销</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div class="layui-side layui-side-menu layui-bg-black" id="admin-side">
            <div class="layui-side-scroll" id="admin-navbar-side" lay-filter="side">
                <a class="layui-logo">
                    <div class="layui-logo-img"><img src="./images/logo@2x.png"/></div>
                    <div class="layui-logo-text">订货管理系统</div>
                </a>
            </div>
        </div>
        <div class="layui-body" style="bottom: 0;top:51px; " id="admin-body">
            <div class="layui-tab admin-nav-card layui-tab-brief" lay-filter="admin-tab" style="height:100%">
                <!-- <ul class="layui-tab-title">
                    <li class="layui-this">
                        <i class="fa fa-dashboard" aria-hidden="true"></i>
                        <cite>首页</cite>
                    </li>
                </ul> -->
				<!-- 面包屑导航 -->
				<div class="bei_navigation">
					<span class="layui-breadcrumb breadcrumbShow">
					   
					</span>
				</div>
                <div class="layui-tab-content" style="min-height: 150px; padding: 0;overflow: hidden;">
                    <div class="layui-tab-item layui-show">
                        <iframe id="iframe" src="home.html" onload="loadFrame(this)"></iframe>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-footer footer footer-demo" id="admin-footer">
            <div class="layui-main">
                <!-- <p>
                    2020 &copy;<a href="http://www.logicalthinking.cn" target="_blank" style="cursor: pointer;">www.logicalthinking.cn</a>
                    LGPL license
                </p> -->
            </div>
        </div>
        <div class="site-tree-mobile layui-hide">
            <i class="layui-icon">&#xe602;</i>
        </div>
        <div class="site-mobile-shade"></div>
    </div>
    <script src="plugins/layui/layui.js"></script>
    <script src="js/jquery.min.js"></script>
    <script src="plugins/layui/modules/index.js"></script>
	<script src="js/crumbs.js"></script>
    <script>
        layui.config({
			base: 'plugins/layui/modules/',
		}).use(['http', 'form', 'element'], function() {
				var http = layui.http,
				form = layui.form,
                element = layui.element;
                
            refreshFrame = function(){
                // 清除记录的搜索条件
                sessionStorage.setItem('xi-can-management-productMSearch', '')
                sessionStorage.setItem('xi-can-management-orderMSearch', '')

                var show = $('.layui-tab-item.layui-show>iframe')[0]
                show.contentWindow.location.reload(true);
            }
            var userInfo = localStorage.getItem('xi-can-management-userInfo');
            if(userInfo){
                userInfo = JSON.parse(userInfo)
                $('.login-name').html(userInfo.userInfo.name);
                $('.login_account').html(userInfo.userInfo.account)
            }else{
                location.href = "login.html";
            }

			form.on('submit(loginout)', function(data) {
                localStorage.setItem('xi-can-management-userInfo','')
                localStorage.setItem('xi-can-management-login','')
                localStorage.setItem('xi-can-management-authentication','')
                localStorage.setItem('xi-can-management-userInfo','')
                
                layer.msg('登出成功')
                setTimeout(function(){
                    location.href = "login.html";
                },800)
			});
			
			
		});
    
    
    </script>
    
</body>
</html>